<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="张三的在线简历 - Java开发工程师">
    <title>陈海涛 - Java开发工程师 | 在线简历</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        /* 全局样式 */
        :root {
            --primary-color: #3498db;
            --secondary-color: #2c3e50;
            --light-color: #ecf0f1;
            --dark-color: #2c3e50;
            --success-color: #2ecc71;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            line-height: 1.6;
            color: #333;
            background-color: #f9f9f9;
            padding: 20px;
            max-width: 1200px;
            margin: 0 auto;
            padding-top: 80px; /* 为固定导航栏留出空间 */
            position: relative;
        }
        
        a {
            text-decoration: none;
            color: var(--primary-color);
        }
        
        /* 导航菜单样式 */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background-color: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            padding: 15px 20px;
            display: flex;
            justify-content: center;
        }
        
        .nav-container {
            display: flex;
            max-width: 1200px;
            width: 100%;
            justify-content: space-between;
            align-items: center;
        }
        
        .nav-logo {
            font-weight: bold;
            color: var(--dark-color);
            font-size: 1.2rem;
        }
        
        .nav-menu {
            display: flex;
            gap: 20px;
        }
        
        .nav-link {
            color: var(--dark-color);
            padding: 5px 10px;
            border-radius: 4px;
            transition: all 0.3s;
        }
        
        .nav-link:hover, .nav-link.active {
            color: white;
            background-color: var(--primary-color);
        }
        
        .print-btn {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .print-btn:hover {
            background-color: var(--secondary-color);
        }
        
        /* 头部样式 */
        header {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            padding: 30px;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }
        
        .profile {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        
        .profile-img {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 5px solid var(--light-color);
        }
        
        .profile-text h1 {
            font-size: 2.2rem;
            color: var(--dark-color);
            margin-bottom: 5px;
        }
        
        .profile-text h2 {
            font-size: 1.2rem;
            color: var(--primary-color);
            font-weight: normal;
            margin-bottom: 10px;
        }
        
        .social-links {
            display: flex;
            gap: 15px;
        }
        
        .social-links a {
            font-size: 1.2rem;
            color: var(--dark-color);
            transition: color 0.3s;
        }
        
        .social-links a:hover {
            color: var(--primary-color);
        }
        
        .contact-info {
            background-color: var(--light-color);
            padding: 20px;
            border-radius: 8px;
        }
        
        .contact-info p {
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        /* 内容区域样式 */
        .section {
            background-color: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
            scroll-margin-top: 80px; /* 为固定导航栏留出空间 */
        }
        
        .section h2 {
            color: var(--dark-color);
            border-bottom: 2px solid var(--primary-color);
            padding-bottom: 10px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        /* 教育背景样式 */
        .education-item {
            margin-bottom: 20px;
        }
        
        .education-item h3 {
            display: flex;
            justify-content: space-between;
            font-size: 1.1rem;
            color: var(--dark-color);
        }
        
        .date {
            color: #777;
            font-weight: normal;
        }
        
        .degree {
            font-style: italic;
            color: #555;
            margin: 5px 0;
        }
        
        .courses h4 {
            margin: 10px 0 5px;
            color: #555;
        }
        
        .course-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            list-style: none;
        }
        
        .course-list li {
            background-color: var(--light-color);
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 0.9rem;
        }
        
        .gpa {
            margin-top: 10px;
            font-weight: bold;
            color: var(--success-color);
        }
        
        /* 技能专长样式 */
        .skills-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
        }
        
        .skill-category {
            background-color: var(--light-color);
            padding: 15px;
            border-radius: 8px;
            transition: transform 0.3s;
        }
        
        .skill-category:hover {
            transform: translateY(-5px);
        }
        
        .skill-category h3 {
            color: var(--primary-color);
            margin-bottom: 10px;
            font-size: 1.1rem;
        }
        
        .skill-category ul {
            list-style-position: inside;
        }
        
        .skill-category li {
            margin-bottom: 5px;
            font-size: 0.95rem;
        }
        
        /* 项目经验样式 */
        .project {
            margin-bottom: 30px;
            border-left: 3px solid var(--primary-color);
            padding-left: 15px;
        }
        
        .project-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 10px;
        }
        
        .project-header h3 {
            color: var(--dark-color);
            font-size: 1.2rem;
        }
        
        .project-date {
            color: #777;
            font-size: 0.9rem;
        }
        
        .project-description {
            margin-bottom: 15px;
            color: #555;
        }
        
        .project-details h4 {
            margin: 15px 0 10px;
            color: #555;
        }
        
        .project-details ul {
            margin-left: 20px;
        }
        
        .project-details li {
            margin-bottom: 8px;
        }
        
        .project-tech h4 {
            margin: 15px 0 10px;
            color: #555;
        }
        
        .tech-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .tech-tags span {
            background-color: var(--light-color);
            padding: 3px 12px;
            border-radius: 15px;
            font-size: 0.85rem;
            color: #333;
        }
        
        .project-links {
            margin-top: 15px;
            display: flex;
            gap: 15px;
        }
        
        .project-links a {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.9rem;
        }
        
        /* 其他部分样式 */
        .content ul {
            margin-left: 20px;
        }
        
        .content li {
            margin-bottom: 8px;
        }
        
        /* 页脚样式 */
        footer {
            text-align: center;
            padding: 20px;
            color: #777;
            font-size: 0.9rem;
        }
        
        /* 返回顶部按钮 */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background-color: var(--primary-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
            z-index: 999;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }
        
        .back-to-top.show {
            opacity: 1;
            visibility: visible;
        }
        
        .back-to-top:hover {
            background-color: var(--secondary-color);
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            body {
                padding-top: 70px;
            }
            
            .navbar {
                padding: 10px;
            }
            
            .nav-container {
                flex-direction: column;
                gap: 10px;
            }
            
            .nav-menu {
                flex-wrap: wrap;
                justify-content: center;
            }
            
            header {
                flex-direction: column;
                text-align: center;
                gap: 20px;
            }
            
            .profile {
                flex-direction: column;
                text-align: center;
            }
            
            .social-links {
                justify-content: center;
            }
            
            .skills-container {
                grid-template-columns: 1fr;
            }
            
            .project-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
            }
            
            .back-to-top {
                width: 40px;
                height: 40px;
                font-size: 1rem;
                bottom: 20px;
                right: 20px;
            }
        }
        
        /* 打印样式 */
        @media print {
            body {
                padding: 0;
                background-color: white;
                font-size: 12pt;
                line-height: 1.4;
            }
            
            .navbar, .back-to-top, footer {
                display: none !important;
            }
            
            header, .section {
                box-shadow: none;
                border: 1px solid #eee;
                page-break-inside: avoid;
            }
            
            .profile-img {
                width: 80px;
                height: 80px;
            }
            
            .section {
                margin-bottom: 20px;
                padding: 20px;
            }
            
            .skills-container {
                grid-template-columns: repeat(3, 1fr);
            }
            
            a {
                text-decoration: underline;
                color: #333;
            }
            
            .project-links a::after {
                content: " (" attr(href) ")";
                font-size: 0.8em;
                color: #666;
            }
            
            @page {
                size: A4;
                margin: 1.5cm;
            }
        }
    </style>
</head>
<body>
    <!-- 导航菜单 -->
    <nav class="navbar">
        <div class="nav-container">
            <div class="nav-logo">张三的简历</div>
            <div class="nav-menu">
                <a href="#profile" class="nav-link active">首页</a>
                <a href="#education" class="nav-link">教育背景</a>
                <a href="#skills" class="nav-link">技术技能</a>
                <a href="#projects" class="nav-link">项目经验</a>
                <a href="#awards" class="nav-link">获奖证书</a>
                <a href="#about" class="nav-link">自我评价</a>
                <button class="print-btn" onclick="window.print()">
                    <i class="fas fa-print"></i> 打印简历
                </button>
            </div>
        </div>
    </nav>

    <!-- 返回顶部按钮 -->
    <div class="back-to-top" title="返回顶部">
        <i class="fas fa-arrow-up"></i>
    </div>

    <!-- 简历内容 -->
    <header id="profile">
        <div class="profile">
            <img src="profile.jpg" alt="张三的个人照片" class="profile-img">
            <div class="profile-text">
                <h1>张三</h1>
                <h2>Java开发工程师</h2>
                <div class="social-links">
                    <a href="https://github.com/zhangsan" target="_blank" aria-label="GitHub">
                        <i class="fab fa-github"></i>
                    </a>
                    <a href="#" aria-label="LinkedIn">
                        <i class="fab fa-linkedin"></i>
                    </a>
                    <a href="#" aria-label="个人博客">
                        <i class="fas fa-blog"></i>
                    </a>
                </div>
            </div>
        </div>
        <div class="contact-info">
            <p><i class="fas fa-phone"></i> 123-4567-890</p>
            <p><i class="fas fa-envelope"></i> zhangsan@example.com</p>
            <p><i class="fas fa-map-marker-alt"></i> 北京</p>
            <p><i class="fas fa-birthday-cake"></i> 2000年5月</p>
        </div>
    </header>

    <section class="section" id="education">
        <h2><i class="fas fa-graduation-cap"></i> 教育背景</h2>
        <div class="content">
            <div class="education-item">
                <h3>XX职业技术学院 <span class="date">2019.09 - 2023.06</span></h3>
                <p class="degree">软件技术专业 - 本科</p>
                <div class="courses">
                    <h4>相关课程：</h4>
                    <ul class="course-list">
                        <li>Java编程</li>
                        <li>数据库原理与应用</li>
                        <li>Web开发技术</li>
                        <li>数据结构与算法</li>
                        <li>软件工程</li>
                        <li>操作系统</li>
                    </ul>
                </div>
                <p class="gpa">GPA: 3.8/4.0 (专业前10%)</p>
            </div>
        </div>
    </section>

    <section class="section" id="skills">
        <h2><i class="fas fa-code"></i> 技术技能</h2>
        <div class="content">
            <div class="skills-container">
                <div class="skill-category">
                    <h3>编程语言</h3>
                    <ul>
                        <li>Java (熟练)</li>
                        <li>Python (熟悉)</li>
                        <li>JavaScript (熟悉)</li>
                    </ul>
                </div>
                
                <div class="skill-category">
                    <h3>后端技术</h3>
                    <ul>
                        <li>Spring Boot</li>
                        <li>MyBatis</li>
                        <li>RESTful API设计</li>
                        <li>Spring Security</li>
                    </ul>
                </div>
                
                <div class="skill-category">
                    <h3>数据库</h3>
                    <ul>
                        <li>MySQL</li>
                        <li>Oracle</li>
                        <li>SQL优化</li>
                        <li>Redis</li>
                    </ul>
                </div>
                
                <div class="skill-category">
                    <h3>前端技术</h3>
                    <ul>
                        <li>HTML5 & CSS3</li>
                        <li>JavaScript (ES6+)</li>
                        <li>Bootstrap</li>
                        <li>Vue.js基础</li>
                    </ul>
                </div>
                
                <div class="skill-category">
                    <h3>工具与平台</h3>
                    <ul>
                        <li>Git版本控制</li>
                        <li>Linux服务器</li>
                        <li>Docker基础</li>
                        <li>IntelliJ IDEA</li>
                    </ul>
                </div>
            </div>
        </div>
    </section>

    <section class="section" id="projects">
        <h2><i class="fas fa-project-diagram"></i> 项目经验</h2>
        
        <div class="project">
            <div class="project-header">
                <h3>在线图书管理系统</h3>
                <span class="project-date">2022.03 - 2022.06</span>
            </div>
            <div class="project-content">
                <p class="project-description">
                    一个基于Spring Boot的全栈图书管理系统，实现了图书管理、用户管理、借阅归还等核心功能，
                    日均访问量200+，系统响应时间<500ms。项目已部署上线并实际使用。
                </p>
                <div class="project-details">
                    <h4>主要职责：</h4>
                    <ul>
                        <li>设计并实现RESTful API接口，使用Spring Security实现JWT认证</li>
                        <li>优化MySQL查询，将关键操作响应时间减少40%</li>
                        <li>使用Redis缓存热门图书数据，提高系统性能</li>
                        <li>参与前端页面开发，使用Bootstrap实现响应式设计</li>
                        <li>编写技术文档和单元测试，代码覆盖率85%+</li>
                    </ul>
                </div>
                <div class="project-tech">
                    <h4>技术栈：</h4>
                    <div class="tech-tags">
                        <span>Java</span>
                        <span>Spring Boot</span>
                        <span>MySQL</span>
                        <span>Redis</span>
                        <span>JWT</span>
                        <span>HTML/CSS/JS</span>
                        <span>Bootstrap</span>
                    </div>
                </div>
                <div class="project-links">
                    <a href="https://github.com/zhangsan/book-management" target="_blank">
                        <i class="fab fa-github"></i> 查看代码
                    </a>
                    <a href="https://demo-book-management.com" target="_blank">
                        <i class="fas fa-external-link-alt"></i> 在线演示
                    </a>
                </div>
            </div>
        </div>
        
        <div class="project">
            <div class="project-header">
                <h3>个人博客系统</h3>
                <span class="project-date">2021.09 - 2021.12</span>
            </div>
            <div class="project-content">
                <p class="project-description">
                    使用Django开发的全功能个人博客系统，支持文章发布、分类、标签、评论、用户注册登录等功能。
                    已发表技术文章30+篇，累计访问量5000+。
                </p>
                <div class="project-details">
                    <h4>主要职责：</h4>
                    <ul>
                        <li>设计数据库模型，实现文章管理核心功能</li>
                        <li>使用Django REST framework开发API接口</li>
                        <li>实现Markdown编辑器支持，优化文章编辑体验</li>
                        <li>部署到Linux服务器，配置Nginx和Gunicorn</li>
                        <li>使用Git进行版本控制，遵循Git Flow工作流</li>
                    </ul>
                </div>
                <div class="project-tech">
                    <h4>技术栈：</h4>
                    <div class="tech-tags">
                        <span>Python</span>
                        <span>Django</span>
                        <span>SQLite</span>
                        <span>HTML/CSS/JS</span>
                        <span>Nginx</span>
                        <span>Linux</span>
                    </div>
                </div>
                <div class="project-links">
                    <a href="https://github.com/zhangsan/personal-blog" target="_blank">
                        <i class="fab fa-github"></i> 查看代码
                    </a>
                    <a href="https://blog.zhangsan.com" target="_blank">
                        <i class="fas fa-external-link-alt"></i> 访问博客
                    </a>
                </div>
            </div>
        </div>
    </section>

    <section class="section" id="awards">
        <h2><i class="fas fa-trophy"></i> 获奖与证书</h2>
        <div class="content">
            <ul>
                <li><strong>2022年校级编程大赛一等奖</strong> - 参赛人数200+，项目评分排名第一</li>
                <li><strong>2021年国家励志奖学金</strong> - 奖励专业成绩前5%的学生</li>
                <li><strong>Oracle Certified Associate, Java SE 8 Programmer</strong> - 2022年获得</li>
                <li><strong>全国计算机等级考试三级数据库技术</strong> - 2021年通过</li>
            </ul>
        </div>
    </section>

    <section class="section" id="about">
        <h2><i class="fas fa-user"></i> 自我评价</h2>
        <div class="content">
            <p>热爱编程的软件技术专业学生，具备扎实的Java开发基础和全栈开发能力。熟悉软件开发全流程，能够独立完成项目从设计到部署的全过程。</p>
            <p>有强烈的学习热情和技术追求，坚持每周在GitHub上提交代码，参与开源项目贡献。在CSDN等技术平台分享学习笔记，累计获得点赞1000+。</p>
            <p>具备良好的团队协作能力和沟通能力，曾担任项目小组组长，带领3人团队完成课程设计项目并获得优秀评价。</p>
        </div>
    </section>

    <footer>
        <p>© 2023 陈海涛. 版权所有 | 最后更新: 2023年6月</p>
        <p><a href="resume.pdf" download="张三-Java开发工程师-简历.pdf"><i class="fas fa-download"></i> 下载PDF版本</a></p>
    </footer>

    <script>
        // 平滑滚动
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                
                // 更新导航菜单活动状态
                document.querySelectorAll('.nav-link').forEach(link => {
                    link.classList.remove('active');
                });
                this.classList.add('active');
                
                // 平滑滚动到目标位置
                const targetId = this.getAttribute('href');
                if(targetId === '#') return;
                
                const targetElement = document.querySelector(targetId);
                if(targetElement) {
                    window.scrollTo({
                        top: targetElement.offsetTop - 70, // 减去导航栏高度
                        behavior: 'smooth'
                    });
                }
            });
        });
        
        // 返回顶部按钮
        const backToTopButton = document.querySelector('.back-to-top');
        
        window.addEventListener('scroll', () => {
            if (window.pageYOffset > 300) {
                backToTopButton.classList.add('show');
            } else {
                backToTopButton.classList.remove('show');
            }
            
            // 高亮当前所在部分的导航菜单项
            const sections = document.querySelectorAll('.section');
            let currentSection = '';
            
            sections.forEach(section => {
                const sectionTop = section.offsetTop - 100;
                if (window.pageYOffset >= sectionTop) {
                    currentSection = '#' + section.getAttribute('id');
                }
            });
            
            document.querySelectorAll('.nav-link').forEach(link => {
                link.classList.remove('active');
                if (link.getAttribute('href') === currentSection) {
                    link.classList.add('active');
                }
            });
        });
        
        backToTopButton.addEventListener('click', () => {
            window.scrollTo({
                top: 0,
                behavior: 'smooth'
            });
        });

        // 打印前优化
        window.onbeforeprint = function() {
            // 可以在这里添加打印前的额外处理
            console.log('准备打印简历...');
        };
        
        window.onafterprint = function() {
            // 打印完成后可以执行的操作
            console.log('打印完成');
        };
    </script>
</body>
</html>